<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="com.yaodian100.core.common.utils.ServerValue"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ include file="/taglibs.jsp"%>
		<script type="text/javascript" charset="UTF-8" src="/js/jquery.datepick.js"></script>
		<script type="text/javascript" charset="UTF-8" src="/js/jquery.datepick-zh-CN.js"></script>
		<link rel="stylesheet" type="text/css" href="/css/smoothness.datepick.css"/>	
		<script language="javascript">
		$().ready( function() {
			$('#startDateParam').datepick({minDate: null, showOn: 'both', 
		    	buttonImageOnly: true, buttonImage: '<%=ServerValue.getMidContextPath()%>/images/calendar.gif',dateFormat:"yy-mm-dd",yearRange: '-50:+50'});
			$('#endDateParam').datepick({minDate: null, showOn: 'both', 
		    	buttonImageOnly: true, buttonImage: '<%=ServerValue.getMidContextPath()%>/images/calendar.gif',dateFormat:"yy-mm-dd",yearRange: '-50:+50'});
		});
		</script>	
<h1>商品管理- 虛擬商品<div class="f-link"><a href="<%=ServerValue.getMidContextPath()%>/product/list.do">回列表页</a></div>
</h1>
<s:form action="save.do" method="post">
<table class="tb-data" width="100%">	

<tr>
			<th>商品名称（商品编号</th>			
		</tr>
		<tr class="">
				<td>        
			   ${product.productName}(${productId})	       
        </td>
	  </tr>
		 <tr>
			<th>虛擬商品名稱</th>			
		</tr>
		<tr class="">
				<td>        
			    <input type="text" name="nameParam" id="nameParam" size="40" value="${virtualProduct.virtualProductName}"/>	       
        </td>
	  </tr>
      <tr>
			<th>虛擬商品數量</th>			
		</tr>
		<tr class="">
				<td>        
			   <input type="text" name="amountParam" id="amountParam" size="10" value="${virtualProduct.virtualProductAmount}"/>	
        </td>
	  </tr>
     
       <tr>
			<th>虛擬商品開始時間</th>			
		</tr>
		<tr class="">
				<td>        
			     <input type="text" name="startDateParam" id="startDateParam" size="10" maxlength="10" value="<fmt:formatDate value="${virtualProduct.virtualProductStartdate}" pattern="yyyy-MM-dd" />"/>  
        </td>
	  </tr>	 
       <tr>
			<th>虛擬商品結束時間</th>			
		</tr>
		<tr class="">
				<td>        
			    <input type="text" name="endDateParam" id="endDateParam" size="10" maxlength="10" value="<fmt:formatDate value="${virtualProduct.virtualProductEnddate}" pattern="yyyy-MM-dd" />"/>	
			           
        </td>
	  </tr> 
			<tr class="">
				<td>
				<input type="hidden" name="productId" value="${productId}"/>
				<input type="submit" id="" value="储  存"/></td>
	  </tr>
</table>
</s:form> 